<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      >


    <ui:composition template="./WEB-INF/includes-templates/template.xhtml">
        <ui:param name="pageTitle" value="#{trans.system_name}" />
        <ui:define name="content" >
            <ui:include src="/WEB-INF/includes/searchBar.xhtml" />
            <h3>#{trans.b_myActivities}</h3>
            <br />
            <br />
            <br />
            <p:dataTable var="act" value="#{activity.allActivities}">  
                <p:column headerText="#{trans.act_name}">  
                    <p:commandLink value="#{act.name}" onclick="dlgx.show();"/>  
                </p:column>
                <p:column headerText="#{trans.act_description}">  
                    #{act.description}
                </p:column>
                <p:column headerText="#{trans.act_date}">  
                    #{act.createDat}
                </p:column>
            </p:dataTable>  

            <p:dialog id="modalDialogActvity" header="#{trans.act_modal_header}" 
                      widgetVar="dlgx" modal="true" height="300" width="400" 
                      showEffect="fade" hideEffect="clip" appendToBody="true">  
                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut sit amet felis nulla. Sed porttitor justo et quam gravida sit amet laoreet quam placerat. Integer ipsum ante, ultricies vel porttitor in, bibendum sit amet odio. Maecenas eu velit vitae neque ultricies consectetur facilisis in leo. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vehicula pretium sagittis. Donec sapien lacus, tempor porttitor tincidunt pretium, tempus sed massa.
            </p:dialog> 

        </ui:define>
    </ui:composition>
</html>
